package top.auntie.service;

import com.github.pagehelper.PageInfo;
import top.auntie.bean.PageReq;
import top.auntie.model.Type;

import java.util.List;

public interface TypeService {


    PageInfo<Type> queryType(PageReq pageReq);

    void saveType(Type type);

    void deleteType(Integer id) throws Exception;

    Type getTypeById(Integer id);

    List<Type> getTypesByOrgId(Integer orgId);

    List<Type> getAllTypes();

}
